package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 库存信息对象 repertory
 * 
 * @author 徐国洋
 * @date 2025-02-24
 */
public class Repertory extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 库存id */
    private Long id;

    /** 商品id */
    @Excel(name = "商品id")
    private Long pid;

    /** 存储量 */
    @Excel(name = "存储量")
    private Long storage;

    /** 商品对象*/
    private Product product;

    public Product getProduct() {
        return product;
    }

    public void setProduct(Product product) {
        this.product = product;
    }

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setPid(Long pid) 
    {
        this.pid = pid;
    }

    public Long getPid() 
    {
        return pid;
    }
    public void setStorage(Long storage) 
    {
        this.storage = storage;
    }

    public Long getStorage() 
    {
        return storage;
    }

    @Override
    public String toString() {
        return "Repertory{" +
                "id=" + id +
                ", pid=" + pid +
                ", storage=" + storage +
                ", product=" + product +
                '}';
    }
}
